home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / stty.man < prev    next >
Encoding:
Text File  |  1989-09-22  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. STTY                  C Library Procedures                   STTY
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      stty, gtty - set and get terminal state (defunct)
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ##iinncclluuddee <<ssggttttyy..hh>>
  13.  
  14.      ssttttyy((ffdd,, bbuuff))
  15.      iinntt ffdd;;
  16.      ssttrruucctt ssggttttyybb **bbuuff;;
  17.  
  18.      ggttttyy((ffdd,, bbuuff))
  19.      iinntt ffdd;;
  20.      ssttrruucctt ssggttttyybb **bbuuff;;
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.      TThhiiss iinntteerrffaaccee iiss oobbssoolleetteedd bbyy iiooccttll((22))..
  24.  
  25.      _S_t_t_y sets the state of the terminal associated with _f_d.
  26.      _G_t_t_y retrieves the state of the terminal associated with _f_d.
  27.      To set the state of a terminal the call must have write per-
  28.      mission.
  29.  
  30.      The _s_t_t_y call is actually ``ioctl(fd, TIOCSETP, buf)'',
  31.      while the _g_t_t_y call is ``ioctl(fd, TIOCGETP, buf)''.  See
  32.      _i_o_c_t_l(2) and _t_t_y(4) for an explanation.
  33.  
  34. DDIIAAGGNNOOSSTTIICCSS
  35.      If the call is successful 0 is returned, otherwise -1 is
  36.      returned and the global variable _e_r_r_n_o contains the reason
  37.      for the failure.
  38.  
  39. SSEEEE AALLSSOO
  40.      ioctl(2), tty(4)
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.